

<script setup lang="ts">
import { ref } from "vue";
import home from "./components/home.vue";
const val = ref('')
</script>

<template>
  <div style="display: flex;">
   <div style="width: 50%;">
    <home v-model:value="val"/>
   </div>
   <!-- 预览 -->
   <div style="width: 50%;">
    <h2 style="text-align: center;">预览</h2>
    <div v-html="val"></div>
   </div>
  </div>

</template>
<style scoped>
p {
  margin: 0;
  padding: 0;
}
</style>

